/**
 *@Description 订单详情页
 *@Author zhangnf
 *@Date 2015-09-25
 */
var tsBottomDetailCtrl  = new XFApp.client();
XFApp.client.prototype.bottomDetail = {
	successCode : "10000",
	page : null,
	initStatus : function(){
		var docketStatusHidden = $("#docketStatusHidden").text();
		if(null != docketStatusHidden
				&& ""!=docketStatusHidden){
			$("#docketStatus").text(dksCtrl.dockerstatus.get(docketStatusHidden));
		}
	},
	event : function(){
		_this = this;

		//初始化状态
		this.initStatus();
	}
};
$.views.converters({
	ftime : function(value) {
		return  new Date(value*1000).format("yyyy-MM-dd hh:mm:ss");
	},
	fdkstatus : function(value){
		return dksCtrl.dockerstatus.get(value);
	}
});
$(function(){
	//初始化编辑数据
	//币制下拉框
	dictCtrl.dictionary.load("currency","currencyHidden");
	//收货人国家下拉框
	dictCtrl.dictionary.load("nation","consingeeCtyHidden", "consingeeCty");
	//发货人国家下拉框
	dictCtrl.dictionary.load("nation", "shipperCtyHidden", "shipperCty");
	//海关代码初始化
	dictCtrl.dictionary.load("customsCode","customscodeHidden","customscode");
	//运输方式代码初始化
	dictCtrl.dictionary.load("transferMode","trafModeHidden","trafMode");
	//初始化事件
	tsBottomDetailCtrl.bottomDetail.event();
});